package com.mobilous.client.project.setup;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.mobilous.client.StaticData;

public class ApplicationSelection extends Composite {

	public ApplicationSelection() {
		AbsolutePanel absolutePanel = new AbsolutePanel();
		initWidget(absolutePanel);
		absolutePanel.setSize("794px", "450px");
		
		Label lblSettingProject = new Label("Project Settings");
		lblSettingProject.setStyleName("gwt-Label-wizard-style");
		absolutePanel.add(lblSettingProject, 0, 0);
		lblSettingProject.setSize("784px", "50px");
		
		Label lblStepOf = new Label("Step 1 of 5: Application Name");
		lblStepOf.setStyleName("gwt-Label-wizard-subheader");
		absolutePanel.add(lblStepOf, 0, 47);
		lblStepOf.setSize("784px", "18px");
		
		Button btnCancel = new Button("Cancel");
		absolutePanel.add(btnCancel, 10, 410);
		
		Button btnNext = new Button("Next");
		absolutePanel.add(btnNext, 741, 410);
		
		Label lblApplicationName = new Label("Application Name");
		absolutePanel.add(lblApplicationName, 221, 102);
		
		Image image = new Image("images/helpicon.png");
		absolutePanel.add(image, 752, 10);
		image.setSize("32px", "32px");
		
		TextBox textBox = new TextBox();
		absolutePanel.add(textBox, 221, 126);
		textBox.setSize("280px", "18px");
		
		Label lblApplicationVersion = new Label("Application Version");
		absolutePanel.add(lblApplicationVersion, 221, 162);
		
		ListBox comboBox = new ListBox();
		comboBox.addItem("0.1");
		comboBox.addItem("0.2");
		comboBox.addItem("0.3");
		comboBox.addItem("0.4");
		comboBox.addItem("0.5");
		comboBox.addItem("0.6");
		comboBox.addItem("1");
		comboBox.addItem("2");
		comboBox.addItem("3");
		comboBox.addItem("4");
		comboBox.addItem("5");
		comboBox.addItem("6");
		comboBox.addItem("7");
		comboBox.addItem("8");
		comboBox.addItem("9");
		comboBox.addItem("10");
		comboBox.addItem("11");
		comboBox.addItem("12");
		comboBox.addItem("13");
		comboBox.addItem("14");
		comboBox.addItem("15");
		comboBox.addItem("16");
		comboBox.addItem("17");
		comboBox.addItem("18");
		comboBox.addItem("19");
		comboBox.addItem("20");
		absolutePanel.add(comboBox, 221, 191);
		comboBox.setSize("290px", "22px");
		
		Label lblDescription = new Label("Description");
		absolutePanel.add(lblDescription, 221, 223);
		
		TextArea textArea = new TextArea();
		absolutePanel.add(textArea, 221, 247);
		textArea.setSize("280px", "89px");
		
		btnCancel.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				StaticData.dialogSetupWizard.hide();
			}
		});
		
		btnNext.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				StaticData.dialogSetupWizard.clear();
				StaticData.dialogSetupWizard.add(new DeviceSelection());
			}
		});
	
	}
}
